import 'package:bmi_cal/constants.dart';
import 'package:flutter/material.dart';
import 'package:bmi_cal/components/resusable_card.dart';
import 'package:bmi_cal/components/bottom_buttom.dart';

class ResultPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("BMI CALULATE RESULT"),
      ),
      body: Column(
        crossAxisAlignment: CrossAxisAlignment.stretch, 
        children: [
        Expanded(
          // padding: EdgeInsets.all(15.0),
          child: Container(
            padding: EdgeInsets.all(10.0),
            child: Text(
            'YOUR RESULT',
            style: kboldFont,
          ),
          )
        ),
        Expanded(
          flex: 5,
          child: ReusableCard(
            colour: Colors.black,
            childCard: Column(
                mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                children: [
                  Text(
                    "NORMAL",
                    style: TextStyle(color: Colors.green),
                  ),
                  Text(
                    '18.5',
                    style: kboldFont,
                  ),
                  Text(
                    'fdsafdasfdsafdsadsa adsf dsafdsaf dsaf dsaf ',
                    style: TextStyle(
                      color: Colors.white70,
                    ),
                  )
                ]),
          ),
        ),
        BottomButtom(title: 'VERY NICE', onPressed: (){
          Navigator.pop(context);
        },)
      ]),
    );
  }
}
